package us.wili.dev.netty.service;

import us.wili.dev.netty.model.game.BetPool;
import us.wili.dev.netty.model.game.Player;

import java.util.List;
import java.util.Map;

public interface NettyBetPoolService {

    /**
     * 计算奖池分池
     * @param betPoolList
     * @param betMap
     * @param ingamePlayers
     */
    void subBetPoolList(List<BetPool> betPoolList, Map<Integer,Long>betMap,
                        List<Player> ingamePlayers);

    /**
     * 根据单个奖池玩家列表，最终成牌列表，计算获胜玩家列表
     * @param poolPlayer
     * @param finalCardsMap
     * @return
     */
    List<Player> compareCardsToWinList(List<Player> poolPlayer,
                                       Map<Integer,List<Integer>> finalCardsMap);

    /**
     * 增加玩家的chips
     * @param p
     * @param chips
     */
    void increasePlayerChips(Player p,Long chips);
}
